<?php
/**
 * 
 * Demo http_build_query function that can concate URL parameters with urlencoding.  
 * 		- convert array to pair parameter & value. 
 * 		- convery value to urlencode. 
 * @var unknown_type
 */


$arr = array('page'=>4, 'search'=>'this is %');
$queryString = http_build_query($arr);
$url = "www.google.com/?" . $queryString;
print $url;

?>